From 8d412732dc094ead3c5cf86c005d187f9624fc65 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Tue, 1 Jul 2025 14:24:36 -0400
Subject: Replace `channel` with `conversation` throughout the API.

This is a **breaking change** for essentially all clients. Thankfully, there's presently just the one, so we don't need to go to much effort to accommoate that; the client is modified in this commit to adapt, users can reload their client, and life will go on.
---
 ui/routes/(app)/ch/[channel]/+page.svelte | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'ui/routes/(app)/ch/[channel]/+page.svelte')

diff --git a/ui/routes/(app)/ch/[channel]/+page.svelte b/ui/routes/(app)/ch/[channel]/+page.svelte
index 87918f7..ef000fc 100644
--- a/ui/routes/(app)/ch/[channel]/+page.svelte
+++ b/ui/routes/(app)/ch/[channel]/+page.svelte
@@ -12,7 +12,9 @@
 
   const channelId = $derived(page.params.channel);
   const channel = $derived(session.channels.find((channel) => channel.id === channelId));
-  const messages = $derived(session.messages.filter((message) => message.channel === channelId));
+  const messages = $derived(
+    session.messages.filter((message) => message.conversation === channelId),
+  );
   const unsent = $derived(outbox.messages.filter((message) => message.channel === channelId));
   const deleted = $derived(outbox.deleted.map((message) => message.messageId));
   const unsentSkeletons = $derived(
-- 
cgit v1.2.3

